package com.pojo;

import java.util.ArrayList;
import java.util.List;

public class ClientExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ClientExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andC_numIsNull() {
            addCriterion("c_num is null");
            return (Criteria) this;
        }

        public Criteria andC_numIsNotNull() {
            addCriterion("c_num is not null");
            return (Criteria) this;
        }

        public Criteria andC_numEqualTo(Integer value) {
            addCriterion("c_num =", value, "c_num");
            return (Criteria) this;
        }

        public Criteria andC_numNotEqualTo(Integer value) {
            addCriterion("c_num <>", value, "c_num");
            return (Criteria) this;
        }

        public Criteria andC_numGreaterThan(Integer value) {
            addCriterion("c_num >", value, "c_num");
            return (Criteria) this;
        }

        public Criteria andC_numGreaterThanOrEqualTo(Integer value) {
            addCriterion("c_num >=", value, "c_num");
            return (Criteria) this;
        }

        public Criteria andC_numLessThan(Integer value) {
            addCriterion("c_num <", value, "c_num");
            return (Criteria) this;
        }

        public Criteria andC_numLessThanOrEqualTo(Integer value) {
            addCriterion("c_num <=", value, "c_num");
            return (Criteria) this;
        }

        public Criteria andC_numIn(List<Integer> values) {
            addCriterion("c_num in", values, "c_num");
            return (Criteria) this;
        }

        public Criteria andC_numNotIn(List<Integer> values) {
            addCriterion("c_num not in", values, "c_num");
            return (Criteria) this;
        }

        public Criteria andC_numBetween(Integer value1, Integer value2) {
            addCriterion("c_num between", value1, value2, "c_num");
            return (Criteria) this;
        }

        public Criteria andC_numNotBetween(Integer value1, Integer value2) {
            addCriterion("c_num not between", value1, value2, "c_num");
            return (Criteria) this;
        }

        public Criteria andC_idIsNull() {
            addCriterion("c_id is null");
            return (Criteria) this;
        }

        public Criteria andC_idIsNotNull() {
            addCriterion("c_id is not null");
            return (Criteria) this;
        }

        public Criteria andC_idEqualTo(Integer value) {
            addCriterion("c_id =", value, "c_id");
            return (Criteria) this;
        }

        public Criteria andC_idNotEqualTo(Integer value) {
            addCriterion("c_id <>", value, "c_id");
            return (Criteria) this;
        }

        public Criteria andC_idGreaterThan(Integer value) {
            addCriterion("c_id >", value, "c_id");
            return (Criteria) this;
        }

        public Criteria andC_idGreaterThanOrEqualTo(Integer value) {
            addCriterion("c_id >=", value, "c_id");
            return (Criteria) this;
        }

        public Criteria andC_idLessThan(Integer value) {
            addCriterion("c_id <", value, "c_id");
            return (Criteria) this;
        }

        public Criteria andC_idLessThanOrEqualTo(Integer value) {
            addCriterion("c_id <=", value, "c_id");
            return (Criteria) this;
        }

        public Criteria andC_idIn(List<Integer> values) {
            addCriterion("c_id in", values, "c_id");
            return (Criteria) this;
        }

        public Criteria andC_idNotIn(List<Integer> values) {
            addCriterion("c_id not in", values, "c_id");
            return (Criteria) this;
        }

        public Criteria andC_idBetween(Integer value1, Integer value2) {
            addCriterion("c_id between", value1, value2, "c_id");
            return (Criteria) this;
        }

        public Criteria andC_idNotBetween(Integer value1, Integer value2) {
            addCriterion("c_id not between", value1, value2, "c_id");
            return (Criteria) this;
        }

        public Criteria andC_nameIsNull() {
            addCriterion("c_name is null");
            return (Criteria) this;
        }

        public Criteria andC_nameIsNotNull() {
            addCriterion("c_name is not null");
            return (Criteria) this;
        }

        public Criteria andC_nameEqualTo(String value) {
            addCriterion("c_name =", value, "c_name");
            return (Criteria) this;
        }

        public Criteria andC_nameNotEqualTo(String value) {
            addCriterion("c_name <>", value, "c_name");
            return (Criteria) this;
        }

        public Criteria andC_nameGreaterThan(String value) {
            addCriterion("c_name >", value, "c_name");
            return (Criteria) this;
        }

        public Criteria andC_nameGreaterThanOrEqualTo(String value) {
            addCriterion("c_name >=", value, "c_name");
            return (Criteria) this;
        }

        public Criteria andC_nameLessThan(String value) {
            addCriterion("c_name <", value, "c_name");
            return (Criteria) this;
        }

        public Criteria andC_nameLessThanOrEqualTo(String value) {
            addCriterion("c_name <=", value, "c_name");
            return (Criteria) this;
        }

        public Criteria andC_nameLike(String value) {
            addCriterion("c_name like", value, "c_name");
            return (Criteria) this;
        }

        public Criteria andC_nameNotLike(String value) {
            addCriterion("c_name not like", value, "c_name");
            return (Criteria) this;
        }

        public Criteria andC_nameIn(List<String> values) {
            addCriterion("c_name in", values, "c_name");
            return (Criteria) this;
        }

        public Criteria andC_nameNotIn(List<String> values) {
            addCriterion("c_name not in", values, "c_name");
            return (Criteria) this;
        }

        public Criteria andC_nameBetween(String value1, String value2) {
            addCriterion("c_name between", value1, value2, "c_name");
            return (Criteria) this;
        }

        public Criteria andC_nameNotBetween(String value1, String value2) {
            addCriterion("c_name not between", value1, value2, "c_name");
            return (Criteria) this;
        }

        public Criteria andC_phone1IsNull() {
            addCriterion("c_phone1 is null");
            return (Criteria) this;
        }

        public Criteria andC_phone1IsNotNull() {
            addCriterion("c_phone1 is not null");
            return (Criteria) this;
        }

        public Criteria andC_phone1EqualTo(String value) {
            addCriterion("c_phone1 =", value, "c_phone1");
            return (Criteria) this;
        }

        public Criteria andC_phone1NotEqualTo(String value) {
            addCriterion("c_phone1 <>", value, "c_phone1");
            return (Criteria) this;
        }

        public Criteria andC_phone1GreaterThan(String value) {
            addCriterion("c_phone1 >", value, "c_phone1");
            return (Criteria) this;
        }

        public Criteria andC_phone1GreaterThanOrEqualTo(String value) {
            addCriterion("c_phone1 >=", value, "c_phone1");
            return (Criteria) this;
        }

        public Criteria andC_phone1LessThan(String value) {
            addCriterion("c_phone1 <", value, "c_phone1");
            return (Criteria) this;
        }

        public Criteria andC_phone1LessThanOrEqualTo(String value) {
            addCriterion("c_phone1 <=", value, "c_phone1");
            return (Criteria) this;
        }

        public Criteria andC_phone1Like(String value) {
            addCriterion("c_phone1 like", value, "c_phone1");
            return (Criteria) this;
        }

        public Criteria andC_phone1NotLike(String value) {
            addCriterion("c_phone1 not like", value, "c_phone1");
            return (Criteria) this;
        }

        public Criteria andC_phone1In(List<String> values) {
            addCriterion("c_phone1 in", values, "c_phone1");
            return (Criteria) this;
        }

        public Criteria andC_phone1NotIn(List<String> values) {
            addCriterion("c_phone1 not in", values, "c_phone1");
            return (Criteria) this;
        }

        public Criteria andC_phone1Between(String value1, String value2) {
            addCriterion("c_phone1 between", value1, value2, "c_phone1");
            return (Criteria) this;
        }

        public Criteria andC_phone1NotBetween(String value1, String value2) {
            addCriterion("c_phone1 not between", value1, value2, "c_phone1");
            return (Criteria) this;
        }

        public Criteria andC_phone2IsNull() {
            addCriterion("c_phone2 is null");
            return (Criteria) this;
        }

        public Criteria andC_phone2IsNotNull() {
            addCriterion("c_phone2 is not null");
            return (Criteria) this;
        }

        public Criteria andC_phone2EqualTo(String value) {
            addCriterion("c_phone2 =", value, "c_phone2");
            return (Criteria) this;
        }

        public Criteria andC_phone2NotEqualTo(String value) {
            addCriterion("c_phone2 <>", value, "c_phone2");
            return (Criteria) this;
        }

        public Criteria andC_phone2GreaterThan(String value) {
            addCriterion("c_phone2 >", value, "c_phone2");
            return (Criteria) this;
        }

        public Criteria andC_phone2GreaterThanOrEqualTo(String value) {
            addCriterion("c_phone2 >=", value, "c_phone2");
            return (Criteria) this;
        }

        public Criteria andC_phone2LessThan(String value) {
            addCriterion("c_phone2 <", value, "c_phone2");
            return (Criteria) this;
        }

        public Criteria andC_phone2LessThanOrEqualTo(String value) {
            addCriterion("c_phone2 <=", value, "c_phone2");
            return (Criteria) this;
        }

        public Criteria andC_phone2Like(String value) {
            addCriterion("c_phone2 like", value, "c_phone2");
            return (Criteria) this;
        }

        public Criteria andC_phone2NotLike(String value) {
            addCriterion("c_phone2 not like", value, "c_phone2");
            return (Criteria) this;
        }

        public Criteria andC_phone2In(List<String> values) {
            addCriterion("c_phone2 in", values, "c_phone2");
            return (Criteria) this;
        }

        public Criteria andC_phone2NotIn(List<String> values) {
            addCriterion("c_phone2 not in", values, "c_phone2");
            return (Criteria) this;
        }

        public Criteria andC_phone2Between(String value1, String value2) {
            addCriterion("c_phone2 between", value1, value2, "c_phone2");
            return (Criteria) this;
        }

        public Criteria andC_phone2NotBetween(String value1, String value2) {
            addCriterion("c_phone2 not between", value1, value2, "c_phone2");
            return (Criteria) this;
        }

        public Criteria andC_addressIsNull() {
            addCriterion("c_address is null");
            return (Criteria) this;
        }

        public Criteria andC_addressIsNotNull() {
            addCriterion("c_address is not null");
            return (Criteria) this;
        }

        public Criteria andC_addressEqualTo(String value) {
            addCriterion("c_address =", value, "c_address");
            return (Criteria) this;
        }

        public Criteria andC_addressNotEqualTo(String value) {
            addCriterion("c_address <>", value, "c_address");
            return (Criteria) this;
        }

        public Criteria andC_addressGreaterThan(String value) {
            addCriterion("c_address >", value, "c_address");
            return (Criteria) this;
        }

        public Criteria andC_addressGreaterThanOrEqualTo(String value) {
            addCriterion("c_address >=", value, "c_address");
            return (Criteria) this;
        }

        public Criteria andC_addressLessThan(String value) {
            addCriterion("c_address <", value, "c_address");
            return (Criteria) this;
        }

        public Criteria andC_addressLessThanOrEqualTo(String value) {
            addCriterion("c_address <=", value, "c_address");
            return (Criteria) this;
        }

        public Criteria andC_addressLike(String value) {
            addCriterion("c_address like", value, "c_address");
            return (Criteria) this;
        }

        public Criteria andC_addressNotLike(String value) {
            addCriterion("c_address not like", value, "c_address");
            return (Criteria) this;
        }

        public Criteria andC_addressIn(List<String> values) {
            addCriterion("c_address in", values, "c_address");
            return (Criteria) this;
        }

        public Criteria andC_addressNotIn(List<String> values) {
            addCriterion("c_address not in", values, "c_address");
            return (Criteria) this;
        }

        public Criteria andC_addressBetween(String value1, String value2) {
            addCriterion("c_address between", value1, value2, "c_address");
            return (Criteria) this;
        }

        public Criteria andC_addressNotBetween(String value1, String value2) {
            addCriterion("c_address not between", value1, value2, "c_address");
            return (Criteria) this;
        }

        public Criteria andC_remarksIsNull() {
            addCriterion("c_remarks is null");
            return (Criteria) this;
        }

        public Criteria andC_remarksIsNotNull() {
            addCriterion("c_remarks is not null");
            return (Criteria) this;
        }

        public Criteria andC_remarksEqualTo(String value) {
            addCriterion("c_remarks =", value, "c_remarks");
            return (Criteria) this;
        }

        public Criteria andC_remarksNotEqualTo(String value) {
            addCriterion("c_remarks <>", value, "c_remarks");
            return (Criteria) this;
        }

        public Criteria andC_remarksGreaterThan(String value) {
            addCriterion("c_remarks >", value, "c_remarks");
            return (Criteria) this;
        }

        public Criteria andC_remarksGreaterThanOrEqualTo(String value) {
            addCriterion("c_remarks >=", value, "c_remarks");
            return (Criteria) this;
        }

        public Criteria andC_remarksLessThan(String value) {
            addCriterion("c_remarks <", value, "c_remarks");
            return (Criteria) this;
        }

        public Criteria andC_remarksLessThanOrEqualTo(String value) {
            addCriterion("c_remarks <=", value, "c_remarks");
            return (Criteria) this;
        }

        public Criteria andC_remarksLike(String value) {
            addCriterion("c_remarks like", value, "c_remarks");
            return (Criteria) this;
        }

        public Criteria andC_remarksNotLike(String value) {
            addCriterion("c_remarks not like", value, "c_remarks");
            return (Criteria) this;
        }

        public Criteria andC_remarksIn(List<String> values) {
            addCriterion("c_remarks in", values, "c_remarks");
            return (Criteria) this;
        }

        public Criteria andC_remarksNotIn(List<String> values) {
            addCriterion("c_remarks not in", values, "c_remarks");
            return (Criteria) this;
        }

        public Criteria andC_remarksBetween(String value1, String value2) {
            addCriterion("c_remarks between", value1, value2, "c_remarks");
            return (Criteria) this;
        }

        public Criteria andC_remarksNotBetween(String value1, String value2) {
            addCriterion("c_remarks not between", value1, value2, "c_remarks");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}